/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.toools.gwt.wmc.client.container;

import com.google.gwt.user.client.rpc.AsyncCallback;
import java.util.Collection;
import org.toools.gwt.widget.client.bc.TooolsServiceAsync;
import org.toools.gwt.wmc.jpa.Container;

/**
 *
 * @author Manuel
 */
public interface ContainerServiceAsync extends TooolsServiceAsync{

    void getContainerByID(Integer id, AsyncCallback<Container> callback);
    void getContainers(AsyncCallback<Collection<Container>> callback);

    void create( Container c, AsyncCallback<Container> callback );
    void update( Container c, AsyncCallback<Boolean> callback );
    void delete( Container c, AsyncCallback<Boolean> callback );

}
